package com.s59.ch01.service;


import com.s59.ch01.entity.Department;
import com.s59.ch01.entity.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    List<Employee> listall(@Param("account") String account,
                           @Param("realName") String realName,
                           @Param("bid") Integer bid, @Param("pageNo") Integer pageNo,
                           @Param("pageSize") Integer pageSize);

    int count(@Param("account") String account,
              @Param("realName") String realName,
              @Param("bid") Integer bid);

    List<Department> listxlk();

    int insertAll(Employee employee);

    int selectAccount(@Param("account") String account);

    int insertSkill(@Param("jnname") String jnname, @Param("uid") Integer uid);

    Employee select(@Param("account") String account);

    Employee select1(@Param("id") Integer id);

    List<String> listbmname(@Param("id") Integer id);

    int update(Employee employee);

    int deleteskill(@Param("id") int id);

    int updateimg(Employee employee);

    int deleteemployee(@Param("id") Integer id);
}
